import service from "."

export function login(username,pwd){
    return service({
        url:"/login",
        method:"POST",
        data:{
            user:username,
            pwd:pwd
        }
    })
}
export function getAllTasks(){
    return service({
        url:"/gatAllForms",
        method:"GET"
    })
}
export function getTaskNumber(){
    return service({
        url:"/getTaskNumber",
        method:"GET"
    })
}
export function saveTask(id,form){
    return service({
        url:"/saveForm",
        method:"POST",
        params:{
            uid:id,
            form:form
        }
    })
}
export function updateTask(id,form){
    return service({
        url:"/saveForm",
        method:"PUT",
        params:{
            id:id,
            form:form
        }
    })
}
export function getRoleList(){
    return service({
        url:"/getRoleList",
        method:"GET"
    })
}
export function getMessages(){
    return service({
        url:"/Messages",
        method:"GET"
    })
}
export function setMessage(message){
    return service({
        url:"/Messages",
        method:"POST",
        params:{
            message:message
        }
    })
}

export function getProcess(process){
    return service({
        url:"/Process",
        method:"GET"
    })
}


